package com.syzg.base.merge.model;

import java.util.ArrayList;
import java.util.List;

public class TaskTreeNode {
	private String id;
	private String text;
	private boolean leaf;
	private String url;
	private String parentId;
	private String iconStyle;
	private List<TaskTreeNode> subNodes;
	
	public TaskTreeNode(){
		subNodes = new ArrayList<TaskTreeNode>();
	}
	
	public TaskTreeNode(String id,String text,boolean leaf,
			String url,String parentId,List<TaskTreeNode> subNodes,String iconStyle){
		this.id = id;
		this.text = text;
		this.leaf = leaf;
		this.url = url;
		this.parentId = parentId;
		this.iconStyle = iconStyle;
		this.subNodes = subNodes;
	}
	public String getIconStyle() {
		return iconStyle;
	}

	public void setIconStyle(String iconStyle) {
		this.iconStyle = iconStyle;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public List<TaskTreeNode> getSubNodes() {
		return subNodes;
	}
	public void setSubNodes(List<TaskTreeNode> subNodes) {
		this.subNodes = subNodes;
	}
}
